package com.test.demo.network;


import android.text.TextUtils;

import com.test.demo.BuildConfig;


/**
 * @desc
 */
public class ApiServiceManager {
    //图片域名
    private String imageServer = "";
    //域名
    private String appUrl = "";
    //阿里云Key
    private String oneKeyLoginKey = "";

    private static ApiServiceManager mInstance;

    public static ApiServiceManager getInstance() {
        if (null == mInstance) {
            mInstance = new ApiServiceManager();
        }
        return mInstance;
    }

    public String getImageServer() {
        return imageServer;
    }

    public void setImageServer(String imageServer) {
        this.imageServer = imageServer;
    }

    public String getAppUrl() {
        if (TextUtils.isEmpty(appUrl)) {
            return BuildConfig.SERVER_URL;
        }
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

//    public String getOneKeyLoginKey() {
//        if (TextUtils.isEmpty(oneKeyLoginKey)) {
//            return ALI_YUN_ONELOGIN_KEY;
//        }
//        return oneKeyLoginKey;
//    }

//    public void setOneKeyLoginKey(String oneKeyLoginKey) {
//        this.oneKeyLoginKey = oneKeyLoginKey;
//    }
}
